package lab6_templateMethod;

public abstract class CaffeineBeverage {
	final void prepareRecipe()
	{
		boilWater();
		brew();
		pourInCup();
		if(customersWantsCondiments())
		{
			addCondiments();
		}
	}
	abstract void brew();
	abstract void addCondiments();
	void boilWater()
	{
		System.out.println("Se fierbe apa.");
	}
	void pourInCup()
	{
		System.out.println("Se toarna in cana");
	}
	boolean customersWantsCondiments()
	{
		return true;
	}
}
